.class public final Lcom/baidu/crabsdk/sender/i;
.super Ljava/lang/Object;


# static fields
.field private static bH:Landroid/content/SharedPreferences;

.field private static bI:Ljava/util/concurrent/ScheduledThreadPoolExecutor;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    new-instance v0, Ljava/util/concurrent/ScheduledThreadPoolExecutor;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;-><init>(I)V

    sput-object v0, Lcom/baidu/crabsdk/sender/i;->bI:Ljava/util/concurrent/ScheduledThreadPoolExecutor;

    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/lang/Throwable;)V
    .locals 1

    new-instance v0, Lcom/baidu/crabsdk/sender/k;

    invoke-direct {v0, p1, p0}, Lcom/baidu/crabsdk/sender/k;-><init>(Ljava/lang/Throwable;Landroid/content/Context;)V

    sget-object p0, Lcom/baidu/crabsdk/sender/i;->bI:Ljava/util/concurrent/ScheduledThreadPoolExecutor;

    invoke-virtual {p0, v0}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public static declared-synchronized a(ZLandroid/content/Context;)V
    .locals 6

    const-class v0, Lcom/baidu/crabsdk/sender/i;

    monitor-enter v0

    :try_start_0
    new-instance v1, Lcom/baidu/crabsdk/sender/m;

    invoke-direct {v1, p1}, Lcom/baidu/crabsdk/sender/m;-><init>(Landroid/content/Context;)V

    if-eqz p0, :cond_1

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    const-string p0, "time_upload_crash"

    invoke-static {p1, p0}, Lcom/baidu/crabsdk/sender/i;->f(Landroid/content/Context;Ljava/lang/String;)J

    move-result-wide v4

    sub-long/2addr v2, v4

    new-instance p0, Ljava/lang/StringBuilder;

    const-string v4, "uploadCrash \u8ddd\u79bb\u521d\u59cb\u5316\u4e0a\u6b21\u4e0a\u4f20\u7684\u95f4\u9694\u662f\uff1a"

    invoke-direct {p0, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    invoke-static {p0}, Lcom/baidu/crabsdk/c/a;->u(Ljava/lang/String;)I

    const-wide/16 v4, 0x2710

    cmp-long p0, v2, v4

    if-gez p0, :cond_0

    sget-object p0, Lcom/baidu/crabsdk/sender/i;->bI:Ljava/util/concurrent/ScheduledThreadPoolExecutor;

    const-wide/16 v2, 0xa

    sget-object v4, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-virtual {p0, v1, v2, v3, v4}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;

    goto :goto_0

    :cond_0
    sget-object p0, Lcom/baidu/crabsdk/sender/i;->bI:Ljava/util/concurrent/ScheduledThreadPoolExecutor;

    invoke-virtual {p0, v1}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->execute(Ljava/lang/Runnable;)V

    :goto_0
    const-string p0, "time_upload_crash"

    invoke-static {p1, p0}, Lcom/baidu/crabsdk/sender/i;->e(Landroid/content/Context;Ljava/lang/String;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v0

    return-void

    :cond_1
    :try_start_1
    sget-object p0, Lcom/baidu/crabsdk/sender/i;->bI:Ljava/util/concurrent/ScheduledThreadPoolExecutor;

    invoke-virtual {p0, v1}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->execute(Ljava/lang/Runnable;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    monitor-exit v0

    return-void

    :catchall_0
    move-exception p0

    monitor-exit v0

    throw p0
.end method

.method public static a([BLjava/lang/String;)V
    .locals 1

    const-string v0, "Block"

    invoke-static {p0, v0, p1}, Lcom/baidu/crabsdk/sender/h;->a([BLjava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    new-instance p1, Ljava/lang/StringBuilder;

    const-string v0, "HttpSender.uploadBlock.result: "

    invoke-direct {p1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    invoke-static {p0}, Lcom/baidu/crabsdk/c/a;->s(Ljava/lang/String;)I

    return-void
.end method

.method public static b(Landroid/content/Context;Ljava/lang/Throwable;)V
    .locals 1

    new-instance v0, Lcom/baidu/crabsdk/sender/l;

    invoke-direct {v0, p0, p1}, Lcom/baidu/crabsdk/sender/l;-><init>(Landroid/content/Context;Ljava/lang/Throwable;)V

    sget-object p0, Lcom/baidu/crabsdk/sender/i;->bI:Ljava/util/concurrent/ScheduledThreadPoolExecutor;

    invoke-virtual {p0, v0}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method private static e(Landroid/content/Context;Ljava/lang/String;)V
    .locals 4

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    :try_start_0
    sget-object v2, Lcom/baidu/crabsdk/sender/i;->bH:Landroid/content/SharedPreferences;

    if-nez v2, :cond_0

    if-eqz p0, :cond_0

    const-string v2, "last_init_crab"

    const/4 v3, 0x4

    invoke-virtual {p0, v2, v3}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object p0

    sput-object p0, Lcom/baidu/crabsdk/sender/i;->bH:Landroid/content/SharedPreferences;

    :cond_0
    sget-object p0, Lcom/baidu/crabsdk/sender/i;->bH:Landroid/content/SharedPreferences;

    if-eqz p0, :cond_1

    sget-object p0, Lcom/baidu/crabsdk/sender/i;->bH:Landroid/content/SharedPreferences;

    invoke-interface {p0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object p0

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    invoke-interface {p0, p1, v2, v3}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;

    move-result-object p0

    invoke-interface {p0}, Landroid/content/SharedPreferences$Editor;->commit()Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p0

    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_1
    :goto_0
    new-instance p0, Ljava/lang/StringBuilder;

    const-string p1, "setLastInitTime cost time = "

    invoke-direct {p0, p1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    sub-long/2addr v2, v0

    invoke-virtual {p0, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    invoke-static {p0}, Lcom/baidu/crabsdk/c/a;->u(Ljava/lang/String;)I

    return-void
.end method

.method private static f(Landroid/content/Context;Ljava/lang/String;)J
    .locals 4

    const-wide/16 v0, 0x0

    :try_start_0
    sget-object v2, Lcom/baidu/crabsdk/sender/i;->bH:Landroid/content/SharedPreferences;

    if-nez v2, :cond_0

    if-eqz p0, :cond_0

    const-string v2, "last_init_crab"

    const/4 v3, 0x4

    invoke-virtual {p0, v2, v3}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object p0

    sput-object p0, Lcom/baidu/crabsdk/sender/i;->bH:Landroid/content/SharedPreferences;

    :cond_0
    sget-object p0, Lcom/baidu/crabsdk/sender/i;->bH:Landroid/content/SharedPreferences;

    if-eqz p0, :cond_1

    sget-object p0, Lcom/baidu/crabsdk/sender/i;->bH:Landroid/content/SharedPreferences;

    invoke-interface {p0, p1, v0, v1}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J

    move-result-wide v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p0

    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_1
    :goto_0
    return-wide v0
.end method

.method public static k(Landroid/content/Context;)V
    .locals 7

    new-instance v0, Lcom/baidu/crabsdk/sender/j;

    invoke-direct {v0, p0}, Lcom/baidu/crabsdk/sender/j;-><init>(Landroid/content/Context;)V

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    const-string v3, "time_upload_native"

    invoke-static {p0, v3}, Lcom/baidu/crabsdk/sender/i;->f(Landroid/content/Context;Ljava/lang/String;)J

    move-result-wide v4

    sub-long/2addr v1, v4

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "uploadNativeCrash \u8ddd\u79bb\u521d\u59cb\u5316\u4e0a\u6b21\u4e0a\u4f20\u7684\u95f4\u9694\u662f\uff1a"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Lcom/baidu/crabsdk/c/a;->u(Ljava/lang/String;)I

    const-wide/16 v4, 0x2710

    cmp-long v6, v1, v4

    sget-object v1, Lcom/baidu/crabsdk/sender/i;->bI:Ljava/util/concurrent/ScheduledThreadPoolExecutor;

    if-gez v6, :cond_0

    const-wide/16 v4, 0xa

    sget-object v2, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-virtual {v1, v0, v4, v5, v2}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;

    goto :goto_0

    :cond_0
    invoke-virtual {v1, v0}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->execute(Ljava/lang/Runnable;)V

    :goto_0
    invoke-static {p0, v3}, Lcom/baidu/crabsdk/sender/i;->e(Landroid/content/Context;Ljava/lang/String;)V

    return-void
.end method

.method private static declared-synchronized l(Landroid/content/Context;)V
    .locals 3

    const-class v0, Lcom/baidu/crabsdk/sender/i;

    monitor-enter v0

    :try_start_0
    invoke-static {p0}, Lcom/baidu/crabsdk/sender/g;->j(Landroid/content/Context;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-nez v1, :cond_0

    const-string p0, "No Native Crash files!!"

    invoke-static {p0}, Lcom/baidu/crabsdk/c/a;->w(Ljava/lang/String;)I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v0

    return-void

    :cond_0
    :try_start_1
    invoke-static {}, Lcom/baidu/crabsdk/b/n;->E()Ljava/lang/String;

    move-result-object v1

    const-string v2, "NONE"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_4

    const-string v2, "UNKNOWN"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    goto :goto_0

    :cond_1
    sget-boolean v2, Lcom/baidu/crabsdk/a;->p:Z

    if-eqz v2, :cond_2

    const-string v1, "upload native immediately!"

    invoke-static {v1}, Lcom/baidu/crabsdk/c/a;->u(Ljava/lang/String;)I

    invoke-static {p0}, Lcom/baidu/crabsdk/sender/i;->m(Landroid/content/Context;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    monitor-exit v0

    return-void

    :cond_2
    :try_start_2
    const-string v2, "WIFI"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_3

    invoke-static {p0}, Lcom/baidu/crabsdk/sender/i;->m(Landroid/content/Context;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    monitor-exit v0

    return-void

    :cond_3
    monitor-exit v0

    return-void

    :cond_4
    :goto_0
    :try_start_3
    const-string p0, "network is not available!"

    invoke-static {p0}, Lcom/baidu/crabsdk/c/a;->u(Ljava/lang/String;)I
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    monitor-exit v0

    return-void

    :catchall_0
    move-exception p0

    monitor-exit v0

    throw p0
.end method

.method private static declared-synchronized m(Landroid/content/Context;)V
    .locals 15

    const-class v0, Lcom/baidu/crabsdk/sender/i;

    monitor-enter v0

    :try_start_0
    invoke-static {p0}, Lcom/baidu/crabsdk/sender/g;->j(Landroid/content/Context;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v2

    if-nez v2, :cond_0

    const-string p0, "\u83b7\u53d6 native crash file \u9519\u8bef\uff01\uff01"

    invoke-static {p0}, Lcom/baidu/crabsdk/c/a;->v(Ljava/lang/String;)I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v0

    return-void

    :cond_0
    :try_start_1
    const-string v2, ".crab"

    invoke-static {p0, v2}, Lcom/baidu/crabsdk/sender/g;->d(Landroid/content/Context;Ljava/lang/String;)Ljava/util/List;

    move-result-object v2

    const-string v3, ".logcat"

    invoke-static {p0, v3}, Lcom/baidu/crabsdk/sender/g;->d(Landroid/content/Context;Ljava/lang/String;)Ljava/util/List;

    move-result-object v3

    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_16

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "absolute native file path@lastModifiedTime: "

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Lcom/baidu/crabsdk/c/a;->s(Ljava/lang/String;)I

    const-string v5, "@"

    invoke-virtual {v4, v5}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v5

    const/4 v6, 0x0

    const/4 v7, 0x1

    const/4 v8, 0x0

    if-eqz v5, :cond_1

    const-string v5, "@"

    invoke-virtual {v4, v5}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v4

    aget-object v5, v4, v6

    aget-object v4, v4, v7

    move-object v14, v5

    move-object v5, v4

    move-object v4, v14

    goto :goto_1

    :cond_1
    move-object v5, v8

    :goto_1
    invoke-static {v4}, Lcom/baidu/crabsdk/sender/i;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    new-instance v10, Ljava/lang/StringBuilder;

    const-string v11, "native fileNameOnly: "

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v10, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Lcom/baidu/crabsdk/c/a;->s(Ljava/lang/String;)I

    const-wide/16 v10, 0x0

    if-eqz v5, :cond_2

    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v12
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-le v12, v7, :cond_2

    :try_start_2
    invoke-static {v5}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v12
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_2

    :catch_0
    move-exception v5

    :try_start_3
    const-string v12, "Java:\u6587\u4ef6\u540d\u8f6c\u65f6\u95f4\u5f02\u5e38!!"

    invoke-static {v12, v5}, Lcom/baidu/crabsdk/c/a;->a(Ljava/lang/String;Ljava/lang/Throwable;)I

    :cond_2
    move-wide v12, v10

    :goto_2
    cmp-long v5, v12, v10

    if-nez v5, :cond_3

    const-string v5, "_"

    invoke-virtual {v9, v5}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v5

    if-eqz v5, :cond_3

    const-string v5, "_"

    invoke-virtual {v9, v5}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v5

    aget-object v5, v5, v7
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :try_start_4
    invoke-static {v5}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v12
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_1
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    goto :goto_3

    :catch_1
    move-exception v5

    :try_start_5
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v12

    const-string v9, "\u6587\u4ef6\u540d\u8f6c\u65f6\u95f4\u5f02\u5e38!!"

    invoke-static {v9, v5}, Lcom/baidu/crabsdk/c/a;->a(Ljava/lang/String;Ljava/lang/Throwable;)I
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    :cond_3
    :goto_3
    :try_start_6
    invoke-static {v4}, Lcom/baidu/crabsdk/sender/g;->o(Ljava/lang/String;)[B

    move-result-object v5

    if-eqz v5, :cond_d

    array-length v9, v5

    if-nez v9, :cond_4

    goto/16 :goto_9

    :cond_4
    invoke-static {v5, v6}, Landroid/util/Base64;->encodeToString([BI)Ljava/lang/String;

    move-result-object v5

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v9, ".logcat"

    invoke-virtual {v6, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-interface {v3, v6}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_5

    const-string v6, "\u5b58\u5728dump\u5bf9\u5e94\u7684.logcat\u6587\u4ef6\uff01"

    invoke-static {v6}, Lcom/baidu/crabsdk/c/a;->u(Ljava/lang/String;)I

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v9, ".logcat"

    invoke-virtual {v6, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Lcom/baidu/crabsdk/sender/g;->o(Ljava/lang/String;)[B

    move-result-object v6

    if-eqz v6, :cond_6

    array-length v9, v6

    if-lez v9, :cond_6

    new-instance v9, Ljava/lang/String;

    invoke-direct {v9, v6}, Ljava/lang/String;-><init>([B)V

    goto :goto_4

    :cond_5
    const-string v6, "\u65e0dump\u5bf9\u5e94\u7684.logcat\u6587\u4ef6\uff01"

    invoke-static {v6}, Lcom/baidu/crabsdk/c/a;->u(Ljava/lang/String;)I

    :cond_6
    move-object v9, v8

    :goto_4
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v10, ".crab"

    invoke-virtual {v6, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-interface {v2, v6}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_b

    const-string v6, "\u5b58\u5728dump\u5bf9\u5e94\u7684.crab\u6587\u4ef6\uff01"

    invoke-static {v6}, Lcom/baidu/crabsdk/c/a;->u(Ljava/lang/String;)I

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v10, ".crab"

    invoke-virtual {v6, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Lcom/baidu/crabsdk/sender/g;->o(Ljava/lang/String;)[B

    move-result-object v6

    if-eqz v6, :cond_7

    array-length v10, v6

    if-lez v10, :cond_7

    new-instance v10, Ljava/lang/String;

    invoke-direct {v10, v6}, Ljava/lang/String;-><init>([B)V

    goto :goto_5

    :cond_7
    move-object v10, v8

    :goto_5
    if-nez v10, :cond_8

    goto/16 :goto_0

    :cond_8
    invoke-static {v10}, Lcom/baidu/crabsdk/c/d;->A(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    new-instance v10, Lorg/json/JSONObject;

    invoke-direct {v10, v6}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string v6, "dump"

    invoke-virtual {v10, v6, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v11

    invoke-virtual {v5, v11, v12}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-static {}, Ljava/util/UUID;->randomUUID()Ljava/util/UUID;

    move-result-object v6

    invoke-virtual {v6}, Ljava/util/UUID;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    const-string v6, "recordId"

    invoke-virtual {v10, v6, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v5, "appKey"

    sget-object v6, Lcom/baidu/crabsdk/a;->d:Ljava/lang/String;

    invoke-virtual {v10, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v5, "os"

    const-string v6, "Android"

    invoke-virtual {v10, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v5, "osVN"

    sget-object v6, Landroid/os/Build$VERSION;->RELEASE:Ljava/lang/String;

    invoke-virtual {v10, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v5, "osVC"

    invoke-static {}, Lcom/baidu/crabsdk/c/c;->ag()I

    move-result v6

    invoke-virtual {v10, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v5, "appVC"

    invoke-static {}, Lcom/baidu/crabsdk/b/o;->I()I

    move-result v6

    invoke-virtual {v10, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v5, "batVN"

    const-string v6, "7.3.5"

    invoke-virtual {v10, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v5, "nativeVN"

    sget-object v6, Lcom/baidu/crabsdk/CrabSDK;->NDK_VERSION:Ljava/lang/String;

    invoke-virtual {v10, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v5, "isRoot"

    invoke-static {}, Lcom/baidu/crabsdk/b/p;->J()I

    move-result v6

    invoke-virtual {v10, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v5, "pkgName"

    invoke-static {}, Lcom/baidu/crabsdk/b/o;->F()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v10, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v5, "appLabel"

    invoke-static {}, Lcom/baidu/crabsdk/b/o;->G()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v10, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    sget-object v5, Lcom/baidu/crabsdk/a;->o:Ljava/lang/String;

    invoke-static {v5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v5

    if-nez v5, :cond_9

    const-string v5, "appVN"

    sget-object v6, Lcom/baidu/crabsdk/a;->o:Ljava/lang/String;

    :goto_6
    invoke-virtual {v10, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    goto :goto_7

    :cond_9
    const-string v5, "appVN"

    invoke-static {}, Lcom/baidu/crabsdk/b/o;->H()Ljava/lang/String;

    move-result-object v6

    goto :goto_6

    :goto_7
    const-string v5, "model"

    sget-object v6, Landroid/os/Build;->MODEL:Ljava/lang/String;

    invoke-virtual {v10, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v5, "brand"

    sget-object v6, Landroid/os/Build;->BRAND:Ljava/lang/String;

    invoke-virtual {v10, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v5, "cpuabi"

    sget-object v6, Landroid/os/Build;->CPU_ABI:Ljava/lang/String;

    invoke-virtual {v10, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v5, "language"

    invoke-static {}, Lcom/baidu/crabsdk/b/i;->getLanguage()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v10, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v5, "country"

    invoke-static {}, Lcom/baidu/crabsdk/b/i;->getCountry()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v10, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v5, "batteryRate"

    invoke-static {}, Lcom/baidu/crabsdk/b/g;->v()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v10, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v5, "appCurConfig"

    invoke-static {p0}, Lcom/baidu/crabsdk/b/f;->e(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v10, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v5, "locale"

    invoke-static {}, Lcom/baidu/crabsdk/b/i;->x()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v10, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v5, "deviceInfo"

    invoke-static {p0}, Lcom/baidu/crabsdk/b/g;->f(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v10, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    invoke-virtual {p0}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;

    move-result-object v5

    iget-object v5, v5, Landroid/content/pm/ApplicationInfo;->nativeLibraryDir:Ljava/lang/String;

    const-string v6, "soLibs"

    invoke-static {v5}, Lcom/baidu/crabsdk/sender/g;->p(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v10, v6, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    sget-boolean v5, Lcom/baidu/crabsdk/a;->L:Z

    if-nez v5, :cond_a

    const-string v5, "filter"

    invoke-virtual {v10, v5, v7}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    goto :goto_8

    :cond_a
    const-string v5, "filter"

    const/4 v6, 0x2

    invoke-virtual {v10, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    goto :goto_8

    :cond_b
    const-string v6, "\u65e0dump\u5bf9\u5e94\u7684.crab\u6587\u4ef6\uff01"

    invoke-static {v6}, Lcom/baidu/crabsdk/c/a;->u(Ljava/lang/String;)I

    invoke-static {p0, v5, v12, v13}, Lcom/baidu/crabsdk/sender/e;->a(Landroid/content/Context;Ljava/lang/String;J)Lorg/json/JSONObject;

    move-result-object v10

    :goto_8
    if-eqz v9, :cond_c

    const-string v5, "logcat"

    invoke-virtual {v10, v5, v9}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    :cond_c
    invoke-virtual {v10}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v5

    goto :goto_b

    :cond_d
    :goto_9
    const-string v5, "read dump file error!"

    invoke-static {v5}, Lcom/baidu/crabsdk/c/a;->v(Ljava/lang/String;)I
    :try_end_6
    .catch Lorg/json/JSONException; {:try_start_6 .. :try_end_6} :catch_3
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_2
    .catchall {:try_start_6 .. :try_end_6} :catchall_0

    goto/16 :goto_0

    :catch_2
    move-exception v5

    :try_start_7
    const-string v6, "JSONObject->\u751f\u6210native\u4fe1\u606f\u9519\u8bef"

    goto :goto_a

    :catch_3
    move-exception v5

    const-string v6, "JSONObject->\u751f\u6210native\u4fe1\u606f\u9519\u8bef"

    :goto_a
    invoke-static {v6, v5}, Lcom/baidu/crabsdk/c/a;->a(Ljava/lang/String;Ljava/lang/Throwable;)I

    move-object v5, v8

    :goto_b
    if-eqz v5, :cond_15

    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v6
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_0

    if-nez v6, :cond_e

    goto/16 :goto_13

    :cond_e
    if-eqz v5, :cond_10

    :try_start_8
    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v6

    if-nez v6, :cond_f

    goto :goto_d

    :cond_f
    new-instance v6, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v6}, Ljava/io/ByteArrayOutputStream;-><init>()V

    new-instance v9, Ljava/util/zip/DeflaterOutputStream;

    new-instance v10, Ljava/util/zip/Deflater;

    const/16 v11, 0x9

    invoke-direct {v10, v11, v7}, Ljava/util/zip/Deflater;-><init>(IZ)V

    invoke-direct {v9, v6, v10}, Ljava/util/zip/DeflaterOutputStream;-><init>(Ljava/io/OutputStream;Ljava/util/zip/Deflater;)V

    const-string v7, "UTF-8"

    invoke-virtual {v5, v7}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v5

    invoke-virtual {v9, v5}, Ljava/util/zip/DeflaterOutputStream;->write([B)V

    invoke-virtual {v9}, Ljava/util/zip/DeflaterOutputStream;->close()V

    invoke-virtual {v6}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v5
    :try_end_8
    .catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_4
    .catchall {:try_start_8 .. :try_end_8} :catchall_0

    goto :goto_e

    :catch_4
    move-exception v4

    :try_start_9
    const-string v5, "UploadLog Compress Error!"

    invoke-static {v5, v4}, Lcom/baidu/crabsdk/c/a;->a(Ljava/lang/String;Ljava/lang/Throwable;)I

    :goto_c
    invoke-virtual {v4}, Ljava/lang/Exception;->printStackTrace()V

    goto/16 :goto_0

    :cond_10
    :goto_d
    move-object v5, v8

    :goto_e
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v7, Lcom/baidu/crabsdk/a;->d:Ljava/lang/String;

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {}, Ljava/util/UUID;->randomUUID()Ljava/util/UUID;

    move-result-object v7

    invoke-virtual {v7}, Ljava/util/UUID;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7}, Lcom/baidu/crabsdk/c/d;->c(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6
    :try_end_9
    .catchall {:try_start_9 .. :try_end_9} :catchall_0

    :try_start_a
    invoke-static {v5, v6}, Lcom/baidu/crabsdk/c/d;->b([BLjava/lang/String;)[B

    move-result-object v5
    :try_end_a
    .catch Ljava/lang/Exception; {:try_start_a .. :try_end_a} :catch_9
    .catchall {:try_start_a .. :try_end_a} :catchall_0

    :try_start_b
    invoke-static {v6}, Lcom/baidu/crabsdk/c/e;->B(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6
    :try_end_b
    .catch Ljava/lang/Exception; {:try_start_b .. :try_end_b} :catch_8
    .catchall {:try_start_b .. :try_end_b} :catchall_0

    :try_start_c
    const-string v7, "NDK"

    invoke-static {}, Lcom/baidu/crabsdk/a;->d()Ljava/lang/String;

    move-result-object v9

    new-instance v10, Ljava/lang/StringBuilder;

    const-string v11, "sendNativeRecord postUrl:"

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v10, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Lcom/baidu/crabsdk/c/a;->s(Ljava/lang/String;)I

    invoke-static {v9, v5, v7, v6}, Lcom/baidu/crabsdk/sender/o;->a(Ljava/lang/String;[BLjava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, "HttpSender.doUpload.result: "

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Lcom/baidu/crabsdk/c/a;->s(Ljava/lang/String;)I

    invoke-static {v5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v6

    if-eqz v6, :cond_11

    const-string v4, "result is empty!"

    :goto_f
    invoke-static {v4}, Lcom/baidu/crabsdk/c/a;->w(Ljava/lang/String;)I

    goto/16 :goto_0

    :cond_11
    if-eqz v5, :cond_12

    const-string v6, "500"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_12

    const-string v4, "not connected to server!"
    :try_end_c
    .catchall {:try_start_c .. :try_end_c} :catchall_0

    goto :goto_f

    :cond_12
    :try_start_d
    new-instance v6, Lorg/json/JSONObject;

    invoke-direct {v6, v5}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
    :try_end_d
    .catch Ljava/lang/Exception; {:try_start_d .. :try_end_d} :catch_6
    .catchall {:try_start_d .. :try_end_d} :catchall_0

    :try_start_e
    const-string v5, "errno"

    invoke-virtual {v6, v5}, Lorg/json/JSONObject;->get(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/lang/Integer;

    invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

    move-result v5
    :try_end_e
    .catch Ljava/lang/Exception; {:try_start_e .. :try_end_e} :catch_5
    .catchall {:try_start_e .. :try_end_e} :catchall_0

    goto :goto_11

    :catch_5
    move-exception v5

    move-object v8, v6

    goto :goto_10

    :catch_6
    move-exception v5

    :goto_10
    :try_start_f
    const-string v6, "errNo"

    invoke-virtual {v8, v6}, Lorg/json/JSONObject;->get(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/lang/Integer;

    invoke-virtual {v6}, Ljava/lang/Integer;->intValue()I

    move-result v5
    :try_end_f
    .catch Lorg/json/JSONException; {:try_start_f .. :try_end_f} :catch_7
    .catchall {:try_start_f .. :try_end_f} :catchall_0

    :goto_11
    :try_start_10
    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, "###--> native errno = "

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Lcom/baidu/crabsdk/c/a;->s(Ljava/lang/String;)I

    if-eqz v5, :cond_14

    const/16 v6, 0xa

    if-eq v5, v6, :cond_13

    const/16 v6, 0xe

    if-eq v5, v6, :cond_13

    const/16 v6, 0xf

    if-eq v5, v6, :cond_13

    goto/16 :goto_0

    :cond_13
    invoke-static {v4}, Lcom/baidu/crabsdk/sender/g;->deleteFile(Ljava/lang/String;)Z

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v6, ".crab"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Lcom/baidu/crabsdk/sender/g;->deleteFile(Ljava/lang/String;)Z

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, ".logcat"

    invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    :goto_12
    invoke-static {v4}, Lcom/baidu/crabsdk/sender/g;->deleteFile(Ljava/lang/String;)Z

    goto/16 :goto_0

    :cond_14
    invoke-static {v4}, Lcom/baidu/crabsdk/sender/g;->deleteFile(Ljava/lang/String;)Z

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v6, ".crab"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Lcom/baidu/crabsdk/sender/g;->deleteFile(Ljava/lang/String;)Z

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, ".logcat"

    invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    goto :goto_12

    :catch_7
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v6, "handle crash result json error, exception is "

    invoke-direct {v4, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Lcom/baidu/crabsdk/c/a;->v(Ljava/lang/String;)I

    invoke-virtual {v5}, Ljava/lang/Exception;->printStackTrace()V

    goto/16 :goto_0

    :catch_8
    move-exception v4

    invoke-virtual {v4}, Ljava/lang/Exception;->printStackTrace()V

    const-string v5, "RSAUtils.encryptIntoBase64 Error!!"

    invoke-static {v5, v4}, Lcom/baidu/crabsdk/c/a;->a(Ljava/lang/String;Ljava/lang/Throwable;)I

    goto/16 :goto_0

    :catch_9
    move-exception v4

    const-string v5, "UploadLog Encrypt Error!!"

    invoke-static {v5, v4}, Lcom/baidu/crabsdk/c/a;->a(Ljava/lang/String;Ljava/lang/Throwable;)I

    goto/16 :goto_c

    :cond_15
    :goto_13
    const-string v4, "\u4e0a\u4f20\u4fe1\u606f\u9519\u8bef\uff0cuploadDumpData\u65e0\u6548\uff01\uff01"

    invoke-static {v4}, Lcom/baidu/crabsdk/c/a;->v(Ljava/lang/String;)I
    :try_end_10
    .catchall {:try_start_10 .. :try_end_10} :catchall_0

    goto/16 :goto_0

    :cond_16
    monitor-exit v0

    return-void

    :catchall_0
    move-exception p0

    monitor-exit v0

    goto :goto_15

    :goto_14
    throw p0

    :goto_15
    goto :goto_14
.end method

.method public static n(Landroid/content/Context;)V
    .locals 1

    new-instance v0, Lcom/baidu/crabsdk/sender/n;

    invoke-direct {v0, p0}, Lcom/baidu/crabsdk/sender/n;-><init>(Landroid/content/Context;)V

    sget-object p0, Lcom/baidu/crabsdk/sender/i;->bI:Ljava/util/concurrent/ScheduledThreadPoolExecutor;

    invoke-virtual {p0, v0}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method private static declared-synchronized o(Landroid/content/Context;)V
    .locals 5

    const-class v0, Lcom/baidu/crabsdk/sender/i;

    monitor-enter v0

    :try_start_0
    invoke-static {p0}, Lcom/baidu/crabsdk/sender/g;->i(Landroid/content/Context;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez v1, :cond_0

    monitor-exit v0

    return-void

    :cond_0
    :try_start_1
    invoke-static {}, Lcom/baidu/crabsdk/b/n;->E()Ljava/lang/String;

    move-result-object v1

    const-string v2, "NONE"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_6

    const-string v2, "UNKNOWN"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    goto :goto_0

    :cond_1
    sget-boolean v2, Lcom/baidu/crabsdk/a;->p:Z

    const-wide/16 v3, 0x0

    if-eqz v2, :cond_2

    const-string v1, "upload immediately!"

    invoke-static {v1}, Lcom/baidu/crabsdk/c/a;->u(Ljava/lang/String;)I

    invoke-static {v3, v4}, Lcom/baidu/crabsdk/sender/f;->a(J)V

    invoke-static {p0}, Lcom/baidu/crabsdk/sender/i;->p(Landroid/content/Context;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    monitor-exit v0

    return-void

    :cond_2
    :try_start_2
    const-string v2, "WIFI"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    invoke-static {v3, v4}, Lcom/baidu/crabsdk/sender/f;->a(J)V

    invoke-static {p0}, Lcom/baidu/crabsdk/sender/i;->p(Landroid/content/Context;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    monitor-exit v0

    return-void

    :cond_3
    :try_start_3
    sget-boolean v2, Lcom/baidu/crabsdk/a;->r:Z

    if-eqz v2, :cond_4

    const-string p0, "network is not wifi, and UPLOAD_CRASH_ONLY_WIFI is true!"

    invoke-static {p0}, Lcom/baidu/crabsdk/c/a;->u(Ljava/lang/String;)I
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    monitor-exit v0

    return-void

    :cond_4
    :try_start_4
    const-string v2, "MOBILE"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_5

    invoke-static {}, Lcom/baidu/crabsdk/sender/f;->W()Z

    move-result v1

    if-eqz v1, :cond_5

    const-string v1, "upload without wifi!"

    invoke-static {v1}, Lcom/baidu/crabsdk/c/a;->u(Ljava/lang/String;)I

    invoke-static {v3, v4}, Lcom/baidu/crabsdk/sender/f;->a(J)V

    invoke-static {p0}, Lcom/baidu/crabsdk/sender/i;->p(Landroid/content/Context;)V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    monitor-exit v0

    return-void

    :cond_5
    :try_start_5
    const-string p0, "network is not wifi!"

    invoke-static {p0}, Lcom/baidu/crabsdk/c/a;->u(Ljava/lang/String;)I
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    monitor-exit v0

    return-void

    :cond_6
    :goto_0
    :try_start_6
    const-string p0, "network is not available!"

    invoke-static {p0}, Lcom/baidu/crabsdk/c/a;->u(Ljava/lang/String;)I
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_0

    monitor-exit v0

    return-void

    :catchall_0
    move-exception p0

    monitor-exit v0

    throw p0
.end method

.method private static declared-synchronized p(Landroid/content/Context;)V
    .locals 9

    const-class v0, Lcom/baidu/crabsdk/sender/i;

    monitor-enter v0

    :try_start_0
    invoke-static {p0}, Lcom/baidu/crabsdk/sender/g;->i(Landroid/content/Context;)Ljava/util/List;

    move-result-object p0

    invoke-interface {p0}, Ljava/util/List;->size()I

    move-result v1

    if-eqz v1, :cond_c

    invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p0

    :goto_0
    invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_c

    invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "(--#)  fileName when send  (--#)"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/i;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/baidu/crabsdk/c/a;->u(Ljava/lang/String;)I

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/f;->f(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_0

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/g;->deleteFile(Ljava/lang/String;)Z

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/f;->h(Ljava/lang/String;)V

    goto :goto_0

    :cond_0
    invoke-static {v1}, Lcom/baidu/crabsdk/sender/g;->o(Ljava/lang/String;)[B

    move-result-object v2

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "HttpSender.sendRecord: "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Lcom/baidu/crabsdk/c/a;->s(Ljava/lang/String;)I

    const-string v3, "crab_crash_"

    invoke-virtual {v1, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    const/4 v4, 0x0

    if-eqz v3, :cond_1

    const-string v3, "Crash"

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/i;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-static {}, Lcom/baidu/crabsdk/a;->a()Ljava/lang/String;

    move-result-object v6

    new-instance v7, Ljava/lang/StringBuilder;

    const-string v8, "sendCrashRecord postUrl:"

    invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v7, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Lcom/baidu/crabsdk/c/a;->s(Ljava/lang/String;)I

    invoke-static {v6, v2, v3, v5}, Lcom/baidu/crabsdk/sender/o;->a(Ljava/lang/String;[BLjava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const-string v3, "HttpSender.sendCrashRecord--->Crash"

    :goto_1
    invoke-static {v3}, Lcom/baidu/crabsdk/c/a;->s(Ljava/lang/String;)I

    goto :goto_2

    :cond_1
    const-string v3, "crab_anr_"

    invoke-virtual {v1, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_2

    const-string v3, "Anr"

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/i;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-static {}, Lcom/baidu/crabsdk/a;->b()Ljava/lang/String;

    move-result-object v6

    new-instance v7, Ljava/lang/StringBuilder;

    const-string v8, "sendSdkRecord postUrl:"

    invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v7, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Lcom/baidu/crabsdk/c/a;->s(Ljava/lang/String;)I

    invoke-static {v6, v2, v3, v5}, Lcom/baidu/crabsdk/sender/o;->a(Ljava/lang/String;[BLjava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const-string v3, "HttpSender.sendAnrRecord--->Anr"

    goto :goto_1

    :cond_2
    const-string v3, "crab_catched_"

    invoke-virtual {v1, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_3

    const-string v3, "Exception"

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/i;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-static {}, Lcom/baidu/crabsdk/a;->b()Ljava/lang/String;

    move-result-object v6

    new-instance v7, Ljava/lang/StringBuilder;

    const-string v8, "sendSdkRecord postUrl:"

    invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v7, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Lcom/baidu/crabsdk/c/a;->s(Ljava/lang/String;)I

    invoke-static {v6, v2, v3, v5}, Lcom/baidu/crabsdk/sender/o;->a(Ljava/lang/String;[BLjava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const-string v3, "HttpSender.sendExceptionRecord--->Exception"

    goto :goto_1

    :cond_3
    const-string v3, "crab_block_"

    invoke-virtual {v1, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_4

    const-string v3, "Block"

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/i;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-static {v2, v3, v5}, Lcom/baidu/crabsdk/sender/h;->a([BLjava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const-string v3, "HttpSender.sendExceptionRecord--->Block"

    goto :goto_1

    :cond_4
    move-object v2, v4

    :goto_2
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v5, "HttpSender.doUpload.result: "

    invoke-direct {v3, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Lcom/baidu/crabsdk/c/a;->s(Ljava/lang/String;)I

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    const/4 v5, 0x1

    if-eqz v3, :cond_5

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/f;->g(Ljava/lang/String;)V

    const-string v1, "result is empty!"

    :goto_3
    invoke-static {v1}, Lcom/baidu/crabsdk/c/a;->w(Ljava/lang/String;)I

    goto/16 :goto_8

    :cond_5
    if-eqz v2, :cond_6

    const-string v3, "500"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_6

    const-string v1, "not connected to server!"
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_3

    :cond_6
    :try_start_1
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3, v2}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :try_start_2
    const-string v2, "errno"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->get(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Integer;

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_5

    :catch_0
    move-exception v2

    move-object v4, v3

    goto :goto_4

    :catch_1
    move-exception v2

    :goto_4
    :try_start_3
    const-string v3, "errNo"

    invoke-virtual {v4, v3}, Lorg/json/JSONObject;->get(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/Integer;

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v2
    :try_end_3
    .catch Lorg/json/JSONException; {:try_start_3 .. :try_end_3} :catch_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    move-object v3, v4

    :goto_5
    :try_start_4
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v6, "###--> errno = "

    invoke-direct {v4, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Lcom/baidu/crabsdk/c/a;->s(Ljava/lang/String;)I

    const/4 v4, -0x1

    if-eq v2, v4, :cond_b

    if-eqz v2, :cond_a

    if-eq v2, v5, :cond_8

    const/16 v3, 0xa

    if-eq v2, v3, :cond_7

    const/16 v3, 0xf

    if-eq v2, v3, :cond_7

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/g;->deleteFile(Ljava/lang/String;)Z

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/i;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/baidu/crabsdk/sender/f;->l(Ljava/lang/String;)V

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "key_"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/i;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/baidu/crabsdk/sender/f;->n(Ljava/lang/String;)V

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/f;->h(Ljava/lang/String;)V

    goto/16 :goto_8

    :cond_7
    invoke-static {v1}, Lcom/baidu/crabsdk/sender/g;->deleteFile(Ljava/lang/String;)Z

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/i;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/baidu/crabsdk/sender/f;->l(Ljava/lang/String;)V

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "key_"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/i;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/baidu/crabsdk/sender/f;->n(Ljava/lang/String;)V

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/f;->h(Ljava/lang/String;)V

    :goto_6
    invoke-static {}, Lcom/baidu/crabsdk/sender/f;->V()V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    goto/16 :goto_8

    :cond_8
    :try_start_5
    const-string v2, "days"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->get(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Integer;

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    if-gtz v2, :cond_9

    const/4 v2, 0x1

    :cond_9
    invoke-static {v2}, Lcom/baidu/crabsdk/sender/f;->a(I)V

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/g;->deleteFile(Ljava/lang/String;)Z

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/i;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/baidu/crabsdk/sender/f;->l(Ljava/lang/String;)V

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "key_"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/i;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/baidu/crabsdk/sender/f;->n(Ljava/lang/String;)V
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_2
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    goto :goto_8

    :catch_2
    move-exception v2

    :try_start_6
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "handle crash result days json error, exception is "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Lcom/baidu/crabsdk/c/a;->v(Ljava/lang/String;)I

    invoke-static {v5}, Lcom/baidu/crabsdk/sender/f;->a(I)V

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/g;->deleteFile(Ljava/lang/String;)Z

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/i;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Lcom/baidu/crabsdk/sender/f;->l(Ljava/lang/String;)V

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "key_"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/i;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/f;->n(Ljava/lang/String;)V

    :goto_7
    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_8

    :cond_a
    invoke-static {v1}, Lcom/baidu/crabsdk/sender/g;->deleteFile(Ljava/lang/String;)Z

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/i;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/baidu/crabsdk/sender/f;->l(Ljava/lang/String;)V

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "key_"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/i;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/baidu/crabsdk/sender/f;->n(Ljava/lang/String;)V

    invoke-static {v1}, Lcom/baidu/crabsdk/sender/f;->h(Ljava/lang/String;)V

    goto/16 :goto_6

    :cond_b
    invoke-static {v1}, Lcom/baidu/crabsdk/sender/f;->g(Ljava/lang/String;)V

    goto/16 :goto_6

    :catch_3
    invoke-static {v1}, Lcom/baidu/crabsdk/sender/f;->g(Ljava/lang/String;)V

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v3, "handle crash result json error, exception is "

    invoke-direct {v1, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/baidu/crabsdk/c/a;->v(Ljava/lang/String;)I

    goto :goto_7

    :goto_8
    sput-boolean v5, Lcom/baidu/crabsdk/sender/d;->bC:Z
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_0

    goto/16 :goto_0

    :cond_c
    monitor-exit v0

    return-void

    :catchall_0
    move-exception p0

    monitor-exit v0

    goto :goto_a

    :goto_9
    throw p0

    :goto_a
    goto :goto_9
.end method

.method private static q(Ljava/lang/String;)Ljava/lang/String;
    .locals 1

    const-string v0, "/"

    invoke-virtual {p0, v0}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v0

    add-int/lit8 v0, v0, 0x1

    invoke-virtual {p0, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method static synthetic q(Landroid/content/Context;)V
    .locals 0

    invoke-static {p0}, Lcom/baidu/crabsdk/sender/i;->l(Landroid/content/Context;)V

    return-void
.end method

.method static synthetic r(Landroid/content/Context;)V
    .locals 0

    invoke-static {p0}, Lcom/baidu/crabsdk/sender/i;->o(Landroid/content/Context;)V

    return-void
.end method
